import Layout from '@/views/layout/Layout'

const route = {
  path: '/dbms',
  redirect: '/dbms/database/list',
  component: Layout,
  meta: {
    title: 'DBMS',
    icon: 'nested'

  },
  hidden: true,
  children: [
    {
      path: 'database/list',
      component: () => import('@/views/dbms/database/list'),
      name: 'DbmsDatabaseList',
      hidden: true,
      meta: { title: '数据库列表' }
    },
    {
      path: 'database/detail/:id',
      component: () => import('@/views/dbms/database/detail'),
      name: 'DbmsDatabaseDetail',
      hidden: true,
      props: true,
      meta: { title: '数据库详情' }
    },
    {
      path: 'database/add',
      component: () => import('@/views/dbms/database/add'),
      name: 'DbmsDatabaseAdd',
      hidden: true,
      props: true,
      meta: { title: '数据库添加' }
    },
    {
      path: 'database/edit/:id',
      component: () => import('@/views/dbms/database/edit'),
      name: 'DbmsDatabaseEdit',
      hidden: true,
      props: true,
      meta: { title: '数据库修改' }
    },
    {
      path: 'database/history/:id',
      component: () => import('@/views/dbms/database/history/list'),
      name: 'DbmsDatabaseHistory',
      hidden: true,
      props: true,
      meta: { title: '历史记录' }
    },
    {
      path: 'database/query',
      component: () => import('@/views/dbms/database/query'),
      hidden: true,
      name: 'DbmsDatabaseQuery',
      meta: { title: '数据检索' }
    }
  ]
}

export default route
